time to string in php

51

Datetime to string php -

<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>

Comments

Submit
0 Comments